
\documentclass[a4paper,12pt]{book}
\frontmatter

\usepackage[french]{babel}
\usepackage[T1]{fontenc}
%\usepackage{lmodern}
\fontfamily{cmdh}\fontseries{m}\selectfont

\usepackage[utf8x]{inputenc}   % Pour utiliser les lettres accentues


\usepackage{scrtime}
%\usepackage[nottoc, notlof, notlot]{tocbibind}
\usepackage{graphicx}
%\usepackage{array}
\usepackage{fancyhdr}
\usepackage{fancybox}
%\usepackage{example}
\usepackage{url}
\usepackage{color}
\usepackage{placeins}
\usepackage{url}
\usepackage{listings}

\usepackage[left=2.5cm, right=1.5cm, top=2cm, bottom=4cm]{geometry}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{hyperref}
\hypersetup{colorlinks,citecolor=black,filecolor=black,linkcolor=black,urlcolor=black}

\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
\usepackage{multirow}

%\usepackage{trees}
%\usepackage{qobitree}



% Pour les boxes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength{\minilongueur}
\newenvironment{FramedBoxShadow}
{\setlength{\fboxsep}{15pt} \setlength{\minilongueur}{\linewidth}
\addtolength{\minilongueur}{-2\fboxsep}
\addtolength{\minilongueur}{-2\fboxrule} \Sbox
\minipage{\minilongueur} \setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{0pt} }
{\endminipage\endSbox\[\shadowbox{\TheSbox}\]}
%
\newlength{\nlength}
\newenvironment{FramedBoxOval}
{\setlength{\fboxsep}{15pt} \setlength{\nlength}{\linewidth}
\addtolength{\nlength}{-2\fboxsep}
\addtolength{\nlength}{-2\fboxrule} \Sbox \minipage{\nlength}
\setlength{\abovedisplayskip}{0pt} }
{\endminipage\endSbox\[\ovalbox{\TheSbox}\]}
%
\newlength{\mylength}
\newenvironment{FramedBox}
{\setlength{\fboxsep}{15pt} \setlength{\mylength}{\linewidth}
\addtolength{\mylength}{-2\fboxsep}
\addtolength{\mylength}{-2\fboxrule} \Sbox \minipage{\mylength}
\setlength{\abovedisplayskip}{0pt} }
{\endminipage\endSbox\[\doublebox{\TheSbox}\]} 

% Pour le code style Java
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{greenComment}{rgb}{0.215,0.643,0.305}
\definecolor{purpleKeyWord}{rgb}{0.64,0,0.55}
\definecolor{grayBackCode}{gray}{0.95}


\lstset{language=c}
\lstset{basicstyle=\scriptsize}
\lstset{backgroundcolor=\color{white}, rulecolor=\color{black}}
\lstset{commentstyle=\scriptsize \color{greenComment} \textit }
\lstset{stringstyle=\scriptsize \color{blue}, showspaces=false  }
\lstset{keywordstyle=\scriptsize  \color{purpleKeyWord} \bfseries  }
\lstset{identifierstyle=\scriptsize}
\lstset{tabsize=2}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%% debut macro pour choisir epaisseur ligne tableau%%%%
\makeatletter
\def\hlinewd#1{%
\noalign{\ifnum0=`}\fi\hrule \@height #1 %
\futurelet\reserved@a\@xhline}
\makeatother
%%%% fin macro %%%%



\definecolor{grey}{rgb}{0.95,0.95,0.95} % on définit la couleur grise (c'est un gris très clair)

%Redéfinition des en-têtes et pieds de page
\pagestyle{fancy}
\fancyhf{}
\fancyfoot[LE]{\thepage}
\fancyfoot[RO]{\thepage}

\fancyhead[RE]{\leftmark}
\fancyhead[LO]{\rightmark}

% En-tête et pied-de-page



% début du document
\begin{document}
%Création du titre
\begin{titlepage}

\begin{center}
\includegraphics[scale=0.15]{../Imgs/HEIG-VD.png}\\
\vspace{1cm}
\end{center}

\begin{FramedBoxShadow}
\begin{center}
\Huge{\textbf{Projet de Bachelor}}\\
\huge{\textbf{Modification de l'ordonnanceur d'un RTOS open-source}}
\end{center}
\end{FramedBoxShadow}

\vspace{1.1cm}
\Large

\begin{center}
\begin{tabular}{ll}
Étudiant : & Lucien Chaubert\\
Promotion : & IL2009\\
Responsable : & Claude Evequoz\\
Institut : & SIM\\
\end{tabular}
\end{center}

\begin{center}
\vspace{1cm}    
Le \today \\
\end{center}

\vspace{1.2cm}

\begin{center}
Lucien Chaubert\\
\vspace{4cm}
\url{http://xenomaiote.googlecode.com/}
\end{center}

\end{titlepage}

\newpage

% modification des dimensions des pages suivant le titre

\addtolength{\footskip}{1cm}
\setlength{\parindent}{0pt}
\setlength{\headsep}{54pt}

%\input{Abstract}

% création de la table des matières

\tableofcontents
\newpage
\listoffigures
\addcontentsline{toc}{chapter}{Liste des figures}



\setlength{\headsep}{37pt}   

%%% Commande pour supprimer en-t�tes
%%% et pied de page des pages vides
\newcommand{\clearemptydoublepages}{\newpage{\pagestyle{empty}\cleardoublepage}}


\mainmatter
% début du corps du texte


\bibliographystyle{alpha}

\input{Introduction}

\input{LinuxRT}
\input{Problematique}
\input{Materiel}
\input{Implemantation}
\input{Projet}
\input{Conclusion}





\newpage
\addcontentsline{toc}{chapter}{Bibliographie}
\bibliography{Bibliographie}
\newpage
\addcontentsline{toc}{chapter}{Annexes}
\input{Journal}
\input{InfoVIA}
\input{InstallationXenomai}
\input{ProgrammeExemple}
\input{OTEPatch}
\input{vprintkPatch}
\input{CahierDesCharges}

\end{document}


















